<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <script>
        var str = "I love lvye!";
        document.write("字符串长度是：" + str.length);
    </script>
</head>
<body>
</body>
</html>